package com.ai.dmc.index.common.exception;

/**
 * 自定义业务异常
 * @author sikong.chen
 *
 */
public class BusinessException extends Exception{
	private static final long serialVersionUID = 1L;
	
	private String code;
	private String msg;

	public BusinessException() {
	}

	public BusinessException(String code) {
		this.code = code;
	}

	public BusinessException(Throwable cause) {
		super(cause);
	}

	public BusinessException(String message, Throwable cause) {
		super(message, cause);
	}
	
	public BusinessException(String code,String message, Throwable cause) {
		super(message, cause);
		this.code=code;
	}
	/**
	 * <默认构造函数>
	 */
	public BusinessException(String code,String msg) {
		super(msg);
		this.code=code;
		this.msg = msg;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
